lisp/editorconfig: Use new Emacs-30 hooks
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 10 Jun 2024 21:18:13 +0000 (17:18 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 Jun 2024 20:18:50 +0000 (16:18 -0400)
commit624ba9fce0624fa1c82a52d9852ecd74a9f3c6c1
treee8923b2db8365e39a00d52d901ff0bbca3c8de49
parentf2803456f029f24276901c2b3115965d892a99d0
lisp/editorconfig: Use new Emacs-30 hooks

* lisp/editorconfig.el (editorconfig--get-coding-system)
(editorconfig--get-dir-local-variables): New functions.
(editorconfig-mode): Use them if possible.
(editorconfig-hack-properties-functions only)
(editorconfig-after-apply-functions): Define only when the old advice
is used, since the new hooks don't support them.
lisp/editorconfig.el